package com.zhangxun.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhangxun.domain.ChangeDto;
import com.zhangxun.domain.Prod;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
* @author 张循
* @description 针对表【prod(商品)】的数据库操作Service
* @createDate 2023-01-01 18:04:15
*/
public interface ProdService extends IService<Prod> {

    Page<Prod> pageByCondition(Page<Prod> page, Prod prod);

    boolean saveProd(Prod prod);

    public void importToES(Integer current, Integer size, Date startDate, Date endDate);


    void updateCountByIds(ChangeDto changeDto);
}
